.class Lcom/example/m6wmr/RunlistActivity$6;
.super Ljava/lang/Thread;
.source "RunlistActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/RunlistActivity;->getorderlist()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/RunlistActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/RunlistActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    .line 339
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 14

    .prologue
    .line 341
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 343
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v11}, Lcom/example/m6wmr/RunlistActivity;->access$4(Lcom/example/m6wmr/RunlistActivity;)Ljava/util/List;

    move-result-object v11

    invoke-interface {v11}, Ljava/util/List;->clear()V

    .line 344
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 345
    .local v4, "msg":Landroid/os/Message;
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    .line 346
    const-string v12, "userInfo"

    const/4 v13, 0x0

    .line 345
    invoke-virtual {v11, v12, v13}, Lcom/example/m6wmr/RunlistActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 347
    .local v5, "preferences":Landroid/content/SharedPreferences;
    const-string v11, "uid"

    const-string v12, ""

    invoke-interface {v5, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 348
    .local v9, "uid":Ljava/lang/String;
    const-string v11, "pass"

    const-string v12, ""

    invoke-interface {v5, v11, v12}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 349
    .local v6, "pwd":Ljava/lang/String;
    new-instance v11, Ljava/lang/StringBuilder;

    iget-object v12, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v12}, Lcom/example/m6wmr/RunlistActivity;->access$10(Lcom/example/m6wmr/RunlistActivity;)Lmyapp/MyApp;

    move-result-object v12

    invoke-virtual {v12}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 350
    const-string v12, "/index.php?ctrl=app&source=1&action=paotuiorder&ordershowtype="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 351
    iget-object v12, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->ordershowtype:Ljava/lang/String;
    invoke-static {v12}, Lcom/example/m6wmr/RunlistActivity;->access$11(Lcom/example/m6wmr/RunlistActivity;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&uid="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&pwd="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 352
    const-string v12, "&page="

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    iget-object v12, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->page:I
    invoke-static {v12}, Lcom/example/m6wmr/RunlistActivity;->access$2(Lcom/example/m6wmr/RunlistActivity;)I

    move-result v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "&datatype=json"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    .line 349
    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    .line 354
    .local v10, "url":Ljava/lang/String;
    const-string v11, "OrderlistACtivity"

    new-instance v12, Ljava/lang/StringBuilder;

    const-string v13, "getShopSource \u83b7\u53d6\u8ba2\u5355\u5217\u8868"

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-static {v11, v12}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 355
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v11}, Lcom/example/m6wmr/RunlistActivity;->access$10(Lcom/example/m6wmr/RunlistActivity;)Lmyapp/MyApp;

    move-result-object v11

    invoke-static {v10, v11}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v8

    .line 359
    .local v8, "str":Ljava/lang/String;
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v8}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 360
    .local v3, "json":Lorg/json/JSONObject;
    const-string v11, "error"

    invoke-virtual {v3, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    const-string v12, "true"

    invoke-virtual {v11, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_0

    .line 363
    const-string v11, "msg"

    invoke-virtual {v3, v11}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 364
    const/4 v11, 0x1

    iput v11, v4, Landroid/os/Message;->arg1:I

    .line 365
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    iget-object v11, v11, Lcom/example/m6wmr/RunlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 404
    .end local v3    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 368
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v11, "msg"

    invoke-virtual {v3, v11}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_1

    .line 370
    const/4 v11, 0x2

    iput v11, v4, Landroid/os/Message;->arg1:I

    .line 371
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    iget-object v11, v11, Lcom/example/m6wmr/RunlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 396
    .end local v3    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 398
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    .line 401
    const/4 v11, 0x5

    iput v11, v4, Landroid/os/Message;->arg1:I

    .line 402
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    iget-object v11, v11, Lcom/example/m6wmr/RunlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 376
    .end local v0    # "e":Lorg/json/JSONException;
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v11, "msg"

    invoke-virtual {v3, v11}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    .line 377
    .local v2, "jo":Lorg/json/JSONArray;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v11

    if-lt v1, v11, :cond_2

    .line 393
    const-string v11, "\u6570\u636e\u957f\u5ea6"

    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v13}, Lcom/example/m6wmr/RunlistActivity;->access$4(Lcom/example/m6wmr/RunlistActivity;)Ljava/util/List;

    move-result-object v13

    invoke-interface {v13}, Ljava/util/List;->size()I

    move-result v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    invoke-static {v11, v12}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 394
    const/4 v11, 0x3

    iput v11, v4, Landroid/os/Message;->arg1:I

    .line 395
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    iget-object v11, v11, Lcom/example/m6wmr/RunlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v11, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 378
    :cond_2
    new-instance v7, Lbean/Runbean;

    invoke-direct {v7}, Lbean/Runbean;-><init>()V

    .line 379
    .local v7, "rb":Lbean/Runbean;
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "addtime"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setName(Ljava/lang/String;)V

    .line 380
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "pstype"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setDet(Ljava/lang/String;)V

    .line 381
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "seestatus"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setStatus(Ljava/lang/String;)V

    .line 382
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "content"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setContent(Ljava/lang/String;)V

    .line 383
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "id"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setId(Ljava/lang/String;)V

    .line 384
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "ptkg"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setWeight(Ljava/lang/String;)V

    .line 385
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "ptkm"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setDis(Ljava/lang/String;)V

    .line 386
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "allkgcost"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setWeipry(Ljava/lang/String;)V

    .line 387
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "allkmcost"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setDispry(Ljava/lang/String;)V

    .line 388
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "farecost"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setScost(Ljava/lang/String;)V

    .line 389
    invoke-virtual {v2, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v11

    const-string v12, "allcost"

    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v7, v11}, Lbean/Runbean;->setAllcost(Ljava/lang/String;)V

    .line 390
    iget-object v11, p0, Lcom/example/m6wmr/RunlistActivity$6;->this$0:Lcom/example/m6wmr/RunlistActivity;

    # getter for: Lcom/example/m6wmr/RunlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v11}, Lcom/example/m6wmr/RunlistActivity;->access$4(Lcom/example/m6wmr/RunlistActivity;)Ljava/util/List;

    move-result-object v11

    invoke-interface {v11, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 377
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 407
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 408
    monitor-exit p0

    return-void

    .line 407
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
